package Day4;

import java.util.Scanner;

public class Nhanvien {
	private String ten;
	private String ma;
	private String ngay;
	private int luong;
    private static float lcb = 100000F;
	public Nhanvien() {
	}
    
	public Nhanvien(String ten, String ma, String ngay, int luong) {
		this.setMa(ma);
		this.setTen(ten);
		this.setNgay(ngay);
		this.setLuong(luong);
	}
	
	
	public void nhap(){
        String key;
        Scanner s= new Scanner(System.in);
        try {
                System.out.println("Nhap Ma VDV: ");this.setMa(s.nextLine());
                System.out.println("Nhap Ten NV: ");this.setTen(s.nextLine());
                System.out.println("Nhap Ngay Vao Lam: ");this.setNgay(s.nextLine());
                System.out.println("Nhap Luong: ");this.setLuong(s.nextInt());
               
            }
       catch(Exception e){
                System.out.print("Loi! "+ e.toString());
            }
            System.out.print("Nhap tiep khong ?: ");
            
    }
	public void xuat(){
        System.out.println("Ma   Ten   Ngay vao lam   Luong  ");
        System.out.println( ma +"  " +ten+ "   "+ngay+"        "+luong);
    }
   public void xuat2(){
	   System.out.println("Ma \t\t\t Ten \t\t\t Ngayvaolam \t\t\t\t Luong"); 
	   System.out.println( ma+" \t\t\t"+ ten+" \t\t\t"+ ngay+" \t\t\t\t\t\t\t\t"+ luong*lcb);
   }
	String getTen() {
		return ten;
	}

	void setTen(String ten) {
		this.ten = ten;
	}

	String getMa() {
		return ma;
	}

	void setMa(String ma) {
		this.ma = ma;
	}

	String getNgay() {
		return ngay;
	}

	void setNgay(String ngay) {
		this.ngay = ngay;
	}

	int getLuong() {
		return luong;
	}

	void setLuong(int luong) {
		this.luong = luong;
	}	

}
